<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/vue.js"></script>
	</head>
	<body>
		<div id="app">
			<p>{{firstName+lastName}}</p>
			
			<p>姓：<input type="text" v-model="firstName"/></p>
			<p>名：<input type="text" v-model="lastName"/></p>
			<p>全名：<span>{{firstName}}{{lastName}}</span></p>
		</div>
		<script>
			var vm=new Vue({
				el:'#app',
				data:{
					firstName:'张',
					lastName:'三'
				}
			})
		</script>
	</body>
</html>